package com.zj.service;

import com.zj.web.bean.ReviewsDTO;

import java.util.List;

public interface ReviewService {
    //评分-差评
    public static final Integer REVIEWS_STATUS_BAD = 0;
    //评分-中评
    public static final Integer REVIEWS_STATUS_GOOD = 1;
    //评分-好评
    public static final Integer REVIEWS_STATUS_GREAT = 2;

    //添加评价
    ReviewsDTO addReview(ReviewsDTO reviews);
    //根据商品ID查询评价列表
    List<ReviewsDTO> getReviewsByProductId(Long productId);
    //根据商品ID和评分查询评价详情
    List<ReviewsDTO> getReviewByIdAndRating(Long productId, Integer rating);
}
